import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson
} from "../utils/request";

//查询
export function queryPageConfigurationInfor(data) {
  return get("/api/promotion-service/v1/PageConfig/queryPageConfigurationInfor",data);
}

//增加
export function carouselConfiguration(data) {
  return post("/api/promotion-service/v1/PageConfig/carouselConfiguration",data);
}

//查询
export function queryShopConfigurationInfor(data) {
  return get("/api/promotion-service/v1/PageConfig/queryShopConfigurationInfor",data);
}

//增加
export function carouselShopConfiguration(data) {
  return post("/api/promotion-service/v1/PageConfig/carouselShopConfiguration",data);
}

//查询
export function queryAuthority(data) {
  return post("/api/user-service/v1/detail/queryAuthority", data);
}
//增加
export function addAppletAuthority(data) {
  return post("/api/user-service/v1/detail/addAppletAuthority", data);
}
//修改
export function updateAppletAuthority(data) {
  return post("/api/user-service/v1/detail/updateAppletAuthority", data);
}
//删除
export function deleteAppletAuthority(data) {
  return post("/api/user-service/v1/detail/deleteAppletAuthority?uuid=" + data);
}

//查询奖品活动
export function qryActivityConfig(data) {
  return post("/api/promotion-service/v1/ActivityConfig/qryActivityConfig",data);
}

//落地页查询
export function getPromotionDeciduousIndexWindow(data) {
  return get("/api/promotion-service/v1/PageConfig/getPromotionDeciduousIndexWindow?disable="+data);
}
//落地页添加
export function editPromotionDeciduousIndexWindow(data) {
  return post("/api/promotion-service/v1/PageConfig/editPromotionDeciduousIndexWindow", data);
}

//查村活动兑换的赠品list
export function qryBonuspointConverInfo(data) {
  return get("/api/promotion-service/v1/promotionBuyFree/qryBonuspointConverInfo", data);
}
